package com.yunhe.option.repository.data;

import com.yunhe.option.domain.data.Weather;
import com.yunhe.option.domain.data.pk.WeatherPK;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface WeatherRepository extends JpaRepository<Weather, WeatherPK> {

    Page<Weather> findAll(Specification<Weather> spec, Pageable pageable);

    Iterable<Weather> findAll(Specification<Weather> spec, Sort sort);

    Iterable<Weather> findAll(Specification<Weather> spec);
}
